package com.cookbook.cookbookservice.common.config;

import com.github.pagehelper.PageInterceptor;
import org.apache.ibatis.plugin.Interceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: mid-tourism-service
 * @ClassName PageHelperConfig
 * @description:
 * @author: MiaoChao
 * @create: 2024-03-12 00:36
 * @Version 1.0
 **/
@Configuration
public class PageHelperConfig {

    @Bean
    public Interceptor[] plugins() {
        return new Interceptor[]{new PageInterceptor()};
    }
}